package com.bysj.lms.mapper;

import com.bysj.lms.pojo.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaojiakai
 * @since 2022-02-04
 */
@Repository
public interface RoleMapper extends BaseMapper<Role> {

    //通过用户名获取该用户所有角色信息
    List<Role> getByUsername(@Param("username") String username);


}
